const mongoose = require('mongoose')

let Schema = mongoose.Schema

let userSchema = new Schema({
    account:String,
    password:String,
    name:{type:String,default:"Ghost"},
    isAdmin:{type:Boolean,default:false},
    course:{type:{},default:{}},
    experiment:{type:Array,default:[]},
    experimentTime:{type:Array,default:[]}
})



module.exports = mongoose.model('User',userSchema)